package com.zrrd.demo01;

/**
 * @author WanJl
 * @version 1.0
 * @title MyArrayTest
 * @description
 * @create 2024/3/24
 */
public class MyArrayTest {
    public static void main(String[] args) {
        MyArray ma=new MyArray();
        System.out.println(ma.size());
        ma.add("张三");
        ma.add(1);
        ma.add('a');
        System.out.println(ma.toString());
        //System.out.println(ma.size());

        //System.out.println(ma.get(0));
        //System.out.println(ma.get(null));
        System.out.println("--------------------------------------------");
        System.out.println(ma.remove(0)+"被删除了");
        System.out.println(ma.toString());
        System.out.println(ma.size());
        ma.removeLast();
        System.out.println(ma.toString());

    }
}
